<template>
  <component
    :formModel="formModel"
    :item="item"
    :params="params"
    :is="item.componentName"
    :addAll="item.addAll"
    :click="
      () => {
        item.clickFun && item.clickFun();
      }
    "
    :change="
      (val) => {
        item.change && item.change(val);
      }
    "
    :focus="
      () => {
        item.focus && item.focus();
      }
    "
    :keydown="
      (event) => {
        item.keydown && item.keydown(event);
        return false;
      }
    "
  />
</template>

<script>
export default {
  props: ["formModel", "item", "change", "params"],
  components: {
    DefaultSelect: () => import("./lib/DefaultSelect"),
    // IsReport: () => import("./lib/IsReport"),
  },
  mounted() {
  },
};
</script>
